import React, { Component } from 'react'


import { Redirect, Route } from 'react-router'

import Admin from './pages/admin'
import './App.css'
import Login from './pages/login'
import { BrowserRouter } from 'react-router-dom'
export default class App extends Component {
  render() {
    return (
      <div className='app'>
        <BrowserRouter >
          <Route path='/login' component={Login}/>
          <Route path='/admin' component={Admin}/>
          <Redirect  to='/login'/>
        </BrowserRouter>
      </div>
      
    )
  }
}
